#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2019/5/27 15:17
# @Author  : khz_df
# @Site    : 
# @File    : 5.minist.py
# @Software: ce9nt


import os
os.environ["TF_CPP_MIN_LOG_LEVEL"] = '3'


def foo():
    from tensorflow.examples.tutorials.mnist import input_data
    mnist = input_data.read_data_sets('./data/', one_hot=True)
    print(mnist.train.num_examples)
    print(mnist.validation.num_examples)
    print(mnist.test.num_examples)
    print(mnist.train.labels[0])
    print(mnist.train.images[0])
    xs, ys = mnist.train.next_batch(200)
    print(xs, ys)
    print(xs.shape)
    print(ys.shape)


def application():
    testNum = input("input the num of the test pictures")


def main():
    foo()
    return
    application()


if __name__ == "__main__":
    print("------------------    Enter __main__    ------------------")

    print(u"[Current work directory is : ]\t" + os.getcwd())
    print(u"[Current process ID is : ]\t" + str(os.getpid()))
    print("\n")
    main()

    print("------------------    Leave __main__    ------------------")
